cd `dirname $0`

rm -rf pnpm-lock.yaml
/data/node/bin/npm install -g pnpm@8
/data/node/bin/pnpm install
/data/node/bin/pnpm build

# 拷贝文件到nginx对应的目录下
rm -rf /usr/share/nginx/html/app_50000005/
mkdir -p /usr/share/nginx/html/app_50000005/
cp -r ./dist/* /usr/share/nginx/html/app_50000005/